

<%= image_tag("icons/spinner.gif",
              :align => "absmiddle",
              :border => 0,
              :id => "spinner",
              :style =>"display: none;" ) %>

<div id="table">
  <h2>Administration</h2>
  <div class="intro-cartasur">
    <h3>Locations</h3>
    <br />This is the adminstration page for locations.  <br />
  </div>
  <table cellpadding="5" cellspacing="10">
    <th align="center" colspan="2"></th>
        <tr>
          <td aligh="right">Create a new location: </td>
          <td><%= link_to("Click here" , new_cartasur_location_path) %></td>
        </tr>
  </table>
</div>

<hr/>
<h3> Current locations: </h3>
<table cellpadding="5" cellspacing="10">

    <th>Location</th><th>Type</th><th>District</th><th>Coordinates</th><th>&nbsp;</th>
  <% @locations.each do |location| %>
      <tr>
        <td> <%= location.name %> </td>
        <td> <%=  location.locationtype %> </td>
        <td> <%= location.district %></td>
        <td> <%= location.aslatlng %> </td>
        <td> <%= link_to("Edit" , edit_cartasur_location_path(location)) %></td>
      </tr>

  <% end %>

</table>

<br/>